package br.com.fanor.manager;

import br.com.fanor.manager.impl.MessageManagerImpl;
import java.lang.ref.WeakReference;

public final class FactoryManager {
    
    private static WeakReference<MessageManager> messageManager;
    
    public static MessageManager getMessageManager() {
        if ( messageManager == null ) {
            messageManager = new WeakReference<MessageManager>(new MessageManagerImpl());
        }
        
        return messageManager.get();
    }
    
}
